/**
* 
* ====================================================================
*
* @author apov <apov@ymail.com>
*/ 
#pragma once

#include "DBError.h"
#include <mysql.h>

/**
* @class MySQL_DBError
*  - 
*/ 
class MySQL_DBError : public DBError{
	enum{
		DEF_ERROR_STR_CODE_SIZE=		6,
		DEF_ERROR_STR_SIZE=				4096,
	};

public:
	virtual int set_error( DBSession* session, void* data, \
		const char* error_query = 0, const char* error_method = 0, 
		const int error_line = 0 );		

	bool isDisconnect();
	void reset();

	MySQL_DBError();
	virtual ~MySQL_DBError();

protected:

private:	
};
